package com.smart.client.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created By Li Jiaxi
 * <br/>Date: 2023/4/12 11:29
 * <br/>Description:
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "smart.tcp")
public class TcpClientProperties {

    /**
     * 是否启用，默认不启用
     */
    private boolean enabled;

    /**
     * 服务器ip
     */
    private String ip;

    /**
     * 服务器端口
     */
    private Integer port;

    /**
     * 传输模式linux上开启会有更高的性能
     */
    private boolean useEpoll;
}
